package com.nursinghome.admin.service;

import com.nursinghome.bean.User;
import com.nursinghome.exception.NurisingHomeException;

public interface UserService {

    //查询用户名是否存在
    User selectByUsername(String username);
    //登录验证
    User login(String username, String password) throws NurisingHomeException;
    //获取用户信息
    User selectById(Integer id);
    //修改密码
    Boolean updateByUse(String username, String password, String newPassword, String confirmPassword) throws NurisingHomeException;
}
